//
//  AccountCurrencyCell.m
//  whopaidforit
//
//  Created by Hoang Vu on 1/29/13.
//  Copyright (c) 2013 Hoang Vu. All rights reserved.
//

#import "AccountCurrencyCell.h"

@implementation AccountCurrencyCell

@synthesize btCurrency, btCurrency2;

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    btCurrency = [[UIButton alloc] initWithFrame:CGRectMake(0, 8, 100, 25)];
    [btCurrency setTitle:@"EURO" forState:UIControlStateNormal];
    [btCurrency setTitleColor:[UIColor colorWithRed:0.247 green:0.243 blue:0.243 alpha:1.0] forState:UIControlStateNormal];
    [self.contentView addSubview:btCurrency];
    
    btCurrency2 = [[UIButton alloc] initWithFrame:CGRectMake(250, 8, 100, 25)];
    [btCurrency2 setTitle:@"€" forState:UIControlStateNormal];
    [btCurrency2 setTitleColor:[UIColor colorWithRed:0.247 green:0.243 blue:0.243 alpha:1.0] forState:UIControlStateNormal];
    [self.contentView addSubview:btCurrency2];
    
    //for background
    GraphicDrawView *cellView = [[GraphicDrawView alloc] init];
    cellView.optionDraw = @"cell";
    self.backgroundView = cellView;
    [cellView release];
    
    //for hover background
    GraphicDrawView *cellHView = [[GraphicDrawView alloc] init];
    cellHView.optionDraw = @"cell";
    cellHView.optionHover = NO;
    self.selectedBackgroundView = cellHView;
    [cellHView release];
    return self;
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
